﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Incendios0_1.Camera.camera_management
{
    /// <summary>
    /// Interaction logic for Cameramanagement.xaml
    /// </summary>
    public partial class Cameramanagement : Window
    {
        public Cameramanagement()
        {
            InitializeComponent();
        }

        private void add_user_Click(object sender, RoutedEventArgs e)
        {
            new Add_camera().ShowDialog();
        }

        private void modify_user_Click(object sender, RoutedEventArgs e)
        {
            CameraData user = new Search_camera().SearchCam();
            if (user != null)
            {
                new Add_camera(user).ShowDialog();
            }
        }

        private void delete_user_Click_1(object sender, RoutedEventArgs e)
        {
            new Delete_camera().ShowDialog();
        }

        private void cancel_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
